package com.hsc.yalebao.newui;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.hsc.yalebao.model.ZhaoPinBean;
import java.util.ArrayList;

public class NewZhaoPinAdapter extends BaseAdapter
{
  private Context context;
  private ArrayList<ZhaoPinBean> messageList;

  public NewZhaoPinAdapter(ArrayList<ZhaoPinBean> paramArrayList, Context paramContext)
  {
    this.messageList = paramArrayList;
    this.context = paramContext;
  }

  public int getCount()
  {
    if (this.messageList == null)
      return 0;
    return this.messageList.size();
  }

  public Object getItem(int paramInt)
  {
    return this.messageList.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    ViewHolder localViewHolder;
    if (paramView == null)
    {
      paramView = View.inflate(this.context, 2130903205, null);
      localViewHolder = new ViewHolder();
      localViewHolder.mJipinImage = ((ImageView)paramView.findViewById(2131100079));
      localViewHolder.mZhiweiTv = ((TextView)paramView.findViewById(2131100313));
      localViewHolder.mGongsiTv = ((TextView)paramView.findViewById(2131100324));
      localViewHolder.mAddressTv = ((TextView)paramView.findViewById(2131100315));
      localViewHolder.mTimeTv = ((TextView)paramView.findViewById(2131100326));
      localViewHolder.mMoneyTv = ((TextView)paramView.findViewById(2131100314));
      paramView.setTag(localViewHolder);
    }
    while (true)
    {
      ZhaoPinBean localZhaoPinBean = (ZhaoPinBean)this.messageList.get(paramInt);
      localViewHolder.mGongsiTv.setText(localZhaoPinBean.getGongsiName());
      localViewHolder.mAddressTv.setText(localZhaoPinBean.getAddress());
      localViewHolder.mMoneyTv.setText(localZhaoPinBean.getMoney());
      localViewHolder.mZhiweiTv.setText(localZhaoPinBean.getZhiwei());
      return paramView;
      localViewHolder = (ViewHolder)paramView.getTag();
    }
  }

  public void setData(ArrayList<ZhaoPinBean> paramArrayList)
  {
    this.messageList = paramArrayList;
  }

  static class ViewHolder
  {
    public TextView mAddressTv;
    public TextView mGongsiTv;
    public ImageView mJipinImage;
    public TextView mMoneyTv;
    public TextView mTimeTv;
    public TextView mZhiweiTv;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.newui.NewZhaoPinAdapter
 * JD-Core Version:    0.6.2
 */